package lab02;

public class Zelos implements RolesCharacter{

    //    人物属性
    static final String RoleName = "IKUN";
    static final int RoleAttack = Role_attack;
    static int ZelosHP = RolesCharacter.ROLE_HP;


    //    打出伤害,属性值对应减少
    @Override
    public void ATTACK() {
//    BOSS对象
        Golem GB = new Golem();
        System.out.println(RoleName+":"+ ZelosHP);
        GB.Injure(BaoJi(RoleAttack));
    }

    //三倍暴击
    public int BaoJi(int Attack){
        int num =(int)((Math.random() * 10) + 1) ;
        if (num >8.0){
            Attack *= 3;
        }
        System.out.println("伤害:"+Attack);
        return Attack;
    }

    @Override
    public void Move() {
        System.out.println("小猪乱拱");
    }

    @Override
    public void AddHP() {
        this.ZelosHP += 30;
    }

    @Override
    public void Injure(int ComingAttack) {
//        受伤
        this.ZelosHP -= ComingAttack;
    }
}